<html>
<head><meta charset="utf-8"><title>resolver = &quot;2&quot; in workspace question · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/resolver.20.3D.20.222.22.20in.20workspace.20question.html">resolver = &quot;2&quot; in workspace question</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="241358004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/resolver%20%3D%20%222%22%20in%20workspace%20question/near/241358004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/resolver.20.3D.20.222.22.20in.20workspace.20question.html#241358004">(Jun 03 2021 at 07:48)</a>:</h4>
<p>I just ran into an issue into my workspace at work where the Docker build for one of my crates containing several binaries was failing while the repo-wide CI was passing. Turns out that one of the binaries in that crate depends on a feature for one of its dependencies that it's apparently getting because it gets enabled in another crate. I then figured I'd try to enable resolver = "2" in the workspace because I understood it to solve this kind of issue (if not, perhaps, this exact issue). So what's the expected resolution behavior for binaries across crates in a workspace? Are they still unified somehow?</p>



<a name="241398112"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/resolver%20%3D%20%222%22%20in%20workspace%20question/near/241398112" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/resolver.20.3D.20.222.22.20in.20workspace.20question.html#241398112">(Jun 03 2021 at 14:27)</a>:</h4>
<p>The behavior in a workspace was not changed, the features still depend on which packages are being built. Issue <a href="https://github.com/rust-lang/cargo/issues/4463">https://github.com/rust-lang/cargo/issues/4463</a> is tracking that.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>